import { loadImage } from '@/utils/utils';
import { ref } from 'vue';
import employee from "@/data/templateData/employee.json";
import vite from "@/data/templateData/vite.json";
import shop from "@/data/templateData/购买意愿调查表.json";
import func from "@/data/templateData/功能测试.json";
const api = `https://api.xinac.net/icon/?url=`;
type list = {
    title: string;
    image: string;
    data: any;
    [key: string]: any;
};
export let templateList = ref<Array<list>>([
    {
        title: "员工管理",
        image: loadImage("employee.svg"),
        data: employee,
        show: false,
        previewSrc: ""
    },
    {
        title: "Vite",
        image: api + "https://vitejs.cn/",
        data: vite,
        show: false,
        previewSrc: ""
    },
    {
        title: "意愿调查",
        image: loadImage("shop.svg"),
        data: shop,
        show: false,
        previewSrc: ""
    },
    {
        title: "功能测试",
        image: loadImage("test-tube_4.png"),
        data: func,
        show: false,
        previewSrc: ""
    }
]);